package com.basic.modules.nykf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("n_ykf_renew_tui")
public class RenewTuiEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId
    private Long id;

    /**
     * 批次ID
     */
    private String batchId;

    /**
     * 退款类型(字典)-val
     */
    private String tklxVal;

    /**
     * 退款金额
     */
    private BigDecimal tkje;

    /**
     * 退款状态(字典)-val
     */
    private String tkztVal;

    /**
     * 退款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date tksj;

    /**
     * 退款渠道(字典)-val
     */
    private String tkqdVal;

    /**
     * 是否开票(字典)-val
     */
    private String sfkpVal;

    /**
     * 开票状态(字典)-val
     */
    private String kpztVal;

    /**
     * 备注
     */
    private String bz;

    /**
     * 创建人姓名
     */
    @TableField(exist = false)
    private String createUserName;

    /**
     * 创建人userId
     */
    private Long createUserId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}